package com.neo.pub.domain;

import com.neo.common.annotation.Excel;
import com.neo.common.annotation.Excel.ColumnType;
import com.neo.common.annotation.Excel.Type;
import com.neo.common.annotation.Excels;
import com.neo.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 用户对象 patient
 * 
 * @author
 */
public class Patient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @Excel(name = "住院号")
    private String patientId;
    @Excel(name = "住院次数")
    private int times;
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
    private String sexCode;
    @Excel(name = "出生日期")
    private String dateOfBirth;
    @Excel(name = "证件号")
    private String idNumber;
    @Excel(name = "电话")
    private String phoneNumber;

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSexCode() {
        return sexCode;
    }

    public void setSexCode(String sexCode) {
        this.sexCode = sexCode;
    }

    public String getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(String dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
}
